package org.vogelsk.blue.objects;


/**
 * 
 * This will be a parent class for pretty much all the objects appearing in the game.
 * 
 * @author dejan.dosic
 *
 */
public abstract class GenericCreature {
	
	public GenericCreature(double height,double width, double x, double y, double d, boolean destructible) {
		super();

		this.height = height;
		this.width = width;
		this.setAngle(0);
		this.setX(x);
		this.setY(y);
		this.setDestructable(destructible);
		this.setSpeed(d);

	}
	private double angle;

	private double height;
	private double width;
    private double x;
    private double y;
    private double speed;
    private boolean destructable; 
    
	public boolean isGoingDown(){
		return false;
	}
	
	public boolean isGoingRight(){
		return false;
	}
	
    public abstract void move();
    
	public double getAngle() {
		
		int angulus = (int) (angle % 360);
		
		return angulus ;
	}

	public void setAngle(double angle) {

		this.angle = angle;
	}
	
	public void incrementAngle(double delta) {

		this.angle += delta;
	}

	public double getX() {
		return x;
	}
	public void setX(double x) {
		this.x = x;
	}
	public double getY() {
		return y;
	}
	public void setY(double y) {
		this.y = y;
	}
	public double getSpeed() {
		return speed;
	}
	public void setSpeed(double d) {
		this.speed = d;
	}
	public boolean isDestructable() {
		return destructable;
	}
	public void setDestructable(boolean destructable) {
		this.destructable = destructable;
	}

	public double getHeight() {
		return height;
	}

	public void setHeight(double height) {
		this.height = height;
	}

	public double getWidth() {
		return width;
	}

	public void setWidth(double width) {
		this.width = width;
	}

}
